<?php
/* @var $this BuildingConstructionController */
/* @var $model BuildingConstruction */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'building-construction-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'no_of_storey'); ?>
		<?php echo $form->textField($model,'no_of_storey'); ?>
		<?php echo $form->error($model,'no_of_storey'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'height_of_building'); ?>
		<?php echo $form->textField($model,'height_of_building',array('size'=>11,'maxlength'=>11)); ?>
		<?php echo $form->error($model,'height_of_building'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'units_of_measurement_in_height'); ?>
		<?php echo $form->dropDownlist($model, 'units_of_measurement_in_height',$model->getMeasurement() ,
		array('prompt' => 'Select Measurement',)); ?>
		<?php echo $form->error($model,'units_of_measurement_in_height'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'portion_occupied'); ?>
		<?php echo $form->textField($model,'portion_occupied'); ?>
		<?php echo $form->error($model,'portion_occupied'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'area_per_floor'); ?>
		<?php echo $form->textField($model,'area_per_floor'); ?>
		<?php echo $form->error($model,'area_per_floor'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'beam'); ?>
		<?php echo $form->textField($model,'beam'); ?>
		<?php echo $form->error($model,'beam'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'column'); ?>
		<?php echo $form->textField($model,'column'); ?>
		<?php echo $form->error($model,'column'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'flooring'); ?>
		<?php echo $form->textArea($model,'flooring',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'flooring'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'exterior_wall'); ?>
		<?php echo $form->textArea($model,'exterior_wall',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'exterior_wall'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'corridor_wall'); ?>
		<?php echo $form->textArea($model,'corridor_wall',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'corridor_wall'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'room_partition'); ?>
		<?php echo $form->textField($model,'room_partition'); ?>
		<?php echo $form->error($model,'room_partition'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'main_stair'); ?>
		<?php echo $form->textField($model,'main_stair'); ?>
		<?php echo $form->error($model,'main_stair'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'window'); ?>
		<?php echo $form->textField($model,'window'); ?>
		<?php echo $form->error($model,'window'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ceiling'); ?>
		<?php echo $form->textField($model,'ceiling'); ?>
		<?php echo $form->error($model,'ceiling'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'main_door'); ?>
		<?php echo $form->textField($model,'main_door'); ?>
		<?php echo $form->error($model,'main_door'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'truss'); ?>
		<?php echo $form->textField($model,'truss'); ?>
		<?php echo $form->error($model,'truss'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'roof'); ?>
		<?php echo $form->textField($model,'roof'); ?>
		<?php echo $form->error($model,'roof'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'total_floor_area_occupied'); ?>
		<?php echo $form->textField($model,'total_floor_area_occupied'); ?>
		<?php echo $form->error($model,'total_floor_area_occupied'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inspection_id'); ?>
		<?php echo $form->textField($model,'inspection_id'); ?>
		<?php echo $form->error($model,'inspection_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->